package com.city.domain.economic;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Objects;

/**
 * @deprecation: 企业信息
 * @dmail: 398521613@qq.com
 * @author: L-H
 * @date: 2018-07-18 13:14
 */
@Entity
public class Enterpriseinfo {
    private int id;//主键
    private String brnoe;//企业工商注册好
    private String giacrn;//集团/总公司工商注册号
    private String urc;//单位组织代码
    private String unitName;//单位名称
    private String fax;//传真
    private String zipcode;//邮编
    private int legalpersonId;//法定代表人,与基本人员信息表中对应
    private String legalpersonPosition;//法定代表人职务
    private String legalpersonName;//法定代表人姓名
    private String legalpersonEmail;//法定代表人邮箱
    private String legalpersonTitle;//法定代表人职称
    private String legalpersonIdcard;//法定代表人身份证号码
    private String managerPosition;//企业经理职务
    private String managerTitle;//企业经理职称
    private String teiicos;//企业分管安全领导
    private String affiliation;//隶属关系
    private int ubua;//城镇建成区,1代表是;0代表否
    private BigDecimal agincome;//年总收入(万元)
    private BigDecimal agmincome;//年主营业务收入(万元)
    private String enterpriseScale;//企业规模,组装保存,例如:大型 大二.空格分隔
    private String economicType;//经济类型
    private BigDecimal registeredCapital;//注册资本(万元)
    private BigDecimal totalAssets;//资产总额(万元)
    private String createtime;//成立时间
    private String miaag;//主项资产等级
    private String regulatoryClassification;//监管分类
    private int mhsources;//是否有重大危险源,0代表没有;1代表有
    private String lopeProvince;//省份
    private String lopeCity;//市
    private String lopeCounty;//县城区
    private String lopeTown;//镇
    private String lopeVillage;//村
    private String lopeRoad;//路
    private String lopeNumber;//号
    private String uregisterAddresws;//
    private String industryClass;//单位注册地址
    private String sooperation;//行业分类
    private int filenumber;//涉及文件数量
    private String updatetime;//
    private int teiicosId;//企业分管安全领导编号,与基本人员信息表中对应
    private String reportingUnit;//填报单位

    @Id
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "brnoe")
    public String getBrnoe() {
        return brnoe;
    }

    public void setBrnoe(String brnoe) {
        this.brnoe = brnoe;
    }

    @Basic
    @Column(name = "giacrn")
    public String getGiacrn() {
        return giacrn;
    }

    public void setGiacrn(String giacrn) {
        this.giacrn = giacrn;
    }

    @Basic
    @Column(name = "urc")
    public String getUrc() {
        return urc;
    }

    public void setUrc(String urc) {
        this.urc = urc;
    }

    @Basic
    @Column(name = "unit_name")
    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    @Basic
    @Column(name = "fax")
    public String getFax() {
        return fax;
    }

    public void setFax(String fax) {
        this.fax = fax;
    }

    @Basic
    @Column(name = "zipcode")
    public String getZipcode() {
        return zipcode;
    }

    public void setZipcode(String zipcode) {
        this.zipcode = zipcode;
    }

    @Basic
    @Column(name = "legalperson_id")
    public int getLegalpersonId() {
        return legalpersonId;
    }

    public void setLegalpersonId(int legalpersonId) {
        this.legalpersonId = legalpersonId;
    }

    @Basic
    @Column(name = "legalperson_position")
    public String getLegalpersonPosition() {
        return legalpersonPosition;
    }

    public void setLegalpersonPosition(String legalpersonPosition) {
        this.legalpersonPosition = legalpersonPosition;
    }

    @Basic
    @Column(name = "legalperson_name")
    public String getLegalpersonName() {
        return legalpersonName;
    }

    public void setLegalpersonName(String legalpersonName) {
        this.legalpersonName = legalpersonName;
    }

    @Basic
    @Column(name = "legalperson_email")
    public String getLegalpersonEmail() {
        return legalpersonEmail;
    }

    public void setLegalpersonEmail(String legalpersonEmail) {
        this.legalpersonEmail = legalpersonEmail;
    }

    @Basic
    @Column(name = "legalperson_title")
    public String getLegalpersonTitle() {
        return legalpersonTitle;
    }

    public void setLegalpersonTitle(String legalpersonTitle) {
        this.legalpersonTitle = legalpersonTitle;
    }

    @Basic
    @Column(name = "legalperson_idcard")
    public String getLegalpersonIdcard() {
        return legalpersonIdcard;
    }

    public void setLegalpersonIdcard(String legalpersonIdcard) {
        this.legalpersonIdcard = legalpersonIdcard;
    }

    @Basic
    @Column(name = "manager_position")
    public String getManagerPosition() {
        return managerPosition;
    }

    public void setManagerPosition(String managerPosition) {
        this.managerPosition = managerPosition;
    }

    @Basic
    @Column(name = "manager_title")
    public String getManagerTitle() {
        return managerTitle;
    }

    public void setManagerTitle(String managerTitle) {
        this.managerTitle = managerTitle;
    }

    @Basic
    @Column(name = "teiicos")
    public String getTeiicos() {
        return teiicos;
    }

    public void setTeiicos(String teiicos) {
        this.teiicos = teiicos;
    }

    @Basic
    @Column(name = "affiliation")
    public String getAffiliation() {
        return affiliation;
    }

    public void setAffiliation(String affiliation) {
        this.affiliation = affiliation;
    }

    @Basic
    @Column(name = "ubua")
    public int getUbua() {
        return ubua;
    }

    public void setUbua(int ubua) {
        this.ubua = ubua;
    }

    @Basic
    @Column(name = "agincome")
    public BigDecimal getAgincome() {
        return agincome;
    }

    public void setAgincome(BigDecimal agincome) {
        this.agincome = agincome;
    }

    @Basic
    @Column(name = "agmincome")
    public BigDecimal getAgmincome() {
        return agmincome;
    }

    public void setAgmincome(BigDecimal agmincome) {
        this.agmincome = agmincome;
    }

    @Basic
    @Column(name = "enterprise_scale")
    public String getEnterpriseScale() {
        return enterpriseScale;
    }

    public void setEnterpriseScale(String enterpriseScale) {
        this.enterpriseScale = enterpriseScale;
    }

    @Basic
    @Column(name = "economic_type")
    public String getEconomicType() {
        return economicType;
    }

    public void setEconomicType(String economicType) {
        this.economicType = economicType;
    }

    @Basic
    @Column(name = "registered_capital")
    public BigDecimal getRegisteredCapital() {
        return registeredCapital;
    }

    public void setRegisteredCapital(BigDecimal registeredCapital) {
        this.registeredCapital = registeredCapital;
    }

    @Basic
    @Column(name = "total_assets")
    public BigDecimal getTotalAssets() {
        return totalAssets;
    }

    public void setTotalAssets(BigDecimal totalAssets) {
        this.totalAssets = totalAssets;
    }

    @Basic
    @Column(name = "createtime")
    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    @Basic
    @Column(name = "miaag")
    public String getMiaag() {
        return miaag;
    }

    public void setMiaag(String miaag) {
        this.miaag = miaag;
    }

    @Basic
    @Column(name = "regulatory_classification")
    public String getRegulatoryClassification() {
        return regulatoryClassification;
    }

    public void setRegulatoryClassification(String regulatoryClassification) {
        this.regulatoryClassification = regulatoryClassification;
    }

    @Basic
    @Column(name = "mhsources")
    public int getMhsources() {
        return mhsources;
    }

    public void setMhsources(int mhsources) {
        this.mhsources = mhsources;
    }

    @Basic
    @Column(name = "lope_province")
    public String getLopeProvince() {
        return lopeProvince;
    }

    public void setLopeProvince(String lopeProvince) {
        this.lopeProvince = lopeProvince;
    }

    @Basic
    @Column(name = "lope_city")
    public String getLopeCity() {
        return lopeCity;
    }

    public void setLopeCity(String lopeCity) {
        this.lopeCity = lopeCity;
    }

    @Basic
    @Column(name = "lope_county")
    public String getLopeCounty() {
        return lopeCounty;
    }

    public void setLopeCounty(String lopeCounty) {
        this.lopeCounty = lopeCounty;
    }

    @Basic
    @Column(name = "lope_town")
    public String getLopeTown() {
        return lopeTown;
    }

    public void setLopeTown(String lopeTown) {
        this.lopeTown = lopeTown;
    }

    @Basic
    @Column(name = "lope_village")
    public String getLopeVillage() {
        return lopeVillage;
    }

    public void setLopeVillage(String lopeVillage) {
        this.lopeVillage = lopeVillage;
    }

    @Basic
    @Column(name = "lope_road")
    public String getLopeRoad() {
        return lopeRoad;
    }

    public void setLopeRoad(String lopeRoad) {
        this.lopeRoad = lopeRoad;
    }

    @Basic
    @Column(name = "lope_number")
    public String getLopeNumber() {
        return lopeNumber;
    }

    public void setLopeNumber(String lopeNumber) {
        this.lopeNumber = lopeNumber;
    }

    @Basic
    @Column(name = "uregister_addresws")
    public String getUregisterAddresws() {
        return uregisterAddresws;
    }

    public void setUregisterAddresws(String uregisterAddresws) {
        this.uregisterAddresws = uregisterAddresws;
    }

    @Basic
    @Column(name = "industry_class")
    public String getIndustryClass() {
        return industryClass;
    }

    public void setIndustryClass(String industryClass) {
        this.industryClass = industryClass;
    }

    @Basic
    @Column(name = "sooperation")
    public String getSooperation() {
        return sooperation;
    }

    public void setSooperation(String sooperation) {
        this.sooperation = sooperation;
    }

    @Basic
    @Column(name = "filenumber")
    public int getFilenumber() {
        return filenumber;
    }

    public void setFilenumber(int filenumber) {
        this.filenumber = filenumber;
    }

    @Basic
    @Column(name = "updatetime")
    public String getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(String updatetime) {
        this.updatetime = updatetime;
    }

    @Basic
    @Column(name = "teiicos_id")
    public int getTeiicosId() {
        return teiicosId;
    }

    public void setTeiicosId(int teiicosId) {
        this.teiicosId = teiicosId;
    }

    @Basic
    @Column(name = "reporting_unit")
    public String getReportingUnit() {
        return reportingUnit;
    }

    public void setReportingUnit(String reportingUnit) {
        this.reportingUnit = reportingUnit;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Enterpriseinfo that = (Enterpriseinfo) o;
        return id == that.id &&
                legalpersonId == that.legalpersonId &&
                ubua == that.ubua &&
                mhsources == that.mhsources &&
                filenumber == that.filenumber &&
                teiicosId == that.teiicosId &&
                Objects.equals(brnoe, that.brnoe) &&
                Objects.equals(giacrn, that.giacrn) &&
                Objects.equals(urc, that.urc) &&
                Objects.equals(unitName, that.unitName) &&
                Objects.equals(fax, that.fax) &&
                Objects.equals(zipcode, that.zipcode) &&
                Objects.equals(legalpersonPosition, that.legalpersonPosition) &&
                Objects.equals(legalpersonName, that.legalpersonName) &&
                Objects.equals(legalpersonEmail, that.legalpersonEmail) &&
                Objects.equals(legalpersonTitle, that.legalpersonTitle) &&
                Objects.equals(legalpersonIdcard, that.legalpersonIdcard) &&
                Objects.equals(managerPosition, that.managerPosition) &&
                Objects.equals(managerTitle, that.managerTitle) &&
                Objects.equals(teiicos, that.teiicos) &&
                Objects.equals(affiliation, that.affiliation) &&
                Objects.equals(agincome, that.agincome) &&
                Objects.equals(agmincome, that.agmincome) &&
                Objects.equals(enterpriseScale, that.enterpriseScale) &&
                Objects.equals(economicType, that.economicType) &&
                Objects.equals(registeredCapital, that.registeredCapital) &&
                Objects.equals(totalAssets, that.totalAssets) &&
                Objects.equals(createtime, that.createtime) &&
                Objects.equals(miaag, that.miaag) &&
                Objects.equals(regulatoryClassification, that.regulatoryClassification) &&
                Objects.equals(lopeProvince, that.lopeProvince) &&
                Objects.equals(lopeCity, that.lopeCity) &&
                Objects.equals(lopeCounty, that.lopeCounty) &&
                Objects.equals(lopeTown, that.lopeTown) &&
                Objects.equals(lopeVillage, that.lopeVillage) &&
                Objects.equals(lopeRoad, that.lopeRoad) &&
                Objects.equals(lopeNumber, that.lopeNumber) &&
                Objects.equals(uregisterAddresws, that.uregisterAddresws) &&
                Objects.equals(industryClass, that.industryClass) &&
                Objects.equals(sooperation, that.sooperation) &&
                Objects.equals(updatetime, that.updatetime) &&
                Objects.equals(reportingUnit, that.reportingUnit);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, brnoe, giacrn, urc, unitName, fax, zipcode, legalpersonId, legalpersonPosition, legalpersonName, legalpersonEmail, legalpersonTitle, legalpersonIdcard, managerPosition, managerTitle, teiicos, affiliation, ubua, agincome, agmincome, enterpriseScale, economicType, registeredCapital, totalAssets, createtime, miaag, regulatoryClassification, mhsources, lopeProvince, lopeCity, lopeCounty, lopeTown, lopeVillage, lopeRoad, lopeNumber, uregisterAddresws, industryClass, sooperation, filenumber, updatetime, teiicosId, reportingUnit);
    }
}
